package com.reyi.book.pojo;

import java.util.ArrayList;
import java.util.List;

public class TUserExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TUserExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUidIsNull() {
            addCriterion("uid is null");
            return (Criteria) this;
        }

        public Criteria andUidIsNotNull() {
            addCriterion("uid is not null");
            return (Criteria) this;
        }

        public Criteria andUidEqualTo(String value) {
            addCriterion("uid =", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotEqualTo(String value) {
            addCriterion("uid <>", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThan(String value) {
            addCriterion("uid >", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThanOrEqualTo(String value) {
            addCriterion("uid >=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThan(String value) {
            addCriterion("uid <", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThanOrEqualTo(String value) {
            addCriterion("uid <=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLike(String value) {
            addCriterion("uid like", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotLike(String value) {
            addCriterion("uid not like", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidIn(List<String> values) {
            addCriterion("uid in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotIn(List<String> values) {
            addCriterion("uid not in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidBetween(String value1, String value2) {
            addCriterion("uid between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotBetween(String value1, String value2) {
            addCriterion("uid not between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andBackgroundIsNull() {
            addCriterion("background is null");
            return (Criteria) this;
        }

        public Criteria andBackgroundIsNotNull() {
            addCriterion("background is not null");
            return (Criteria) this;
        }

        public Criteria andBackgroundEqualTo(String value) {
            addCriterion("background =", value, "background");
            return (Criteria) this;
        }

        public Criteria andBackgroundNotEqualTo(String value) {
            addCriterion("background <>", value, "background");
            return (Criteria) this;
        }

        public Criteria andBackgroundGreaterThan(String value) {
            addCriterion("background >", value, "background");
            return (Criteria) this;
        }

        public Criteria andBackgroundGreaterThanOrEqualTo(String value) {
            addCriterion("background >=", value, "background");
            return (Criteria) this;
        }

        public Criteria andBackgroundLessThan(String value) {
            addCriterion("background <", value, "background");
            return (Criteria) this;
        }

        public Criteria andBackgroundLessThanOrEqualTo(String value) {
            addCriterion("background <=", value, "background");
            return (Criteria) this;
        }

        public Criteria andBackgroundLike(String value) {
            addCriterion("background like", value, "background");
            return (Criteria) this;
        }

        public Criteria andBackgroundNotLike(String value) {
            addCriterion("background not like", value, "background");
            return (Criteria) this;
        }

        public Criteria andBackgroundIn(List<String> values) {
            addCriterion("background in", values, "background");
            return (Criteria) this;
        }

        public Criteria andBackgroundNotIn(List<String> values) {
            addCriterion("background not in", values, "background");
            return (Criteria) this;
        }

        public Criteria andBackgroundBetween(String value1, String value2) {
            addCriterion("background between", value1, value2, "background");
            return (Criteria) this;
        }

        public Criteria andBackgroundNotBetween(String value1, String value2) {
            addCriterion("background not between", value1, value2, "background");
            return (Criteria) this;
        }

        public Criteria andGradeTermIsNull() {
            addCriterion("grade_term is null");
            return (Criteria) this;
        }

        public Criteria andGradeTermIsNotNull() {
            addCriterion("grade_term is not null");
            return (Criteria) this;
        }

        public Criteria andGradeTermEqualTo(String value) {
            addCriterion("grade_term =", value, "gradeTerm");
            return (Criteria) this;
        }

        public Criteria andGradeTermNotEqualTo(String value) {
            addCriterion("grade_term <>", value, "gradeTerm");
            return (Criteria) this;
        }

        public Criteria andGradeTermGreaterThan(String value) {
            addCriterion("grade_term >", value, "gradeTerm");
            return (Criteria) this;
        }

        public Criteria andGradeTermGreaterThanOrEqualTo(String value) {
            addCriterion("grade_term >=", value, "gradeTerm");
            return (Criteria) this;
        }

        public Criteria andGradeTermLessThan(String value) {
            addCriterion("grade_term <", value, "gradeTerm");
            return (Criteria) this;
        }

        public Criteria andGradeTermLessThanOrEqualTo(String value) {
            addCriterion("grade_term <=", value, "gradeTerm");
            return (Criteria) this;
        }

        public Criteria andGradeTermLike(String value) {
            addCriterion("grade_term like", value, "gradeTerm");
            return (Criteria) this;
        }

        public Criteria andGradeTermNotLike(String value) {
            addCriterion("grade_term not like", value, "gradeTerm");
            return (Criteria) this;
        }

        public Criteria andGradeTermIn(List<String> values) {
            addCriterion("grade_term in", values, "gradeTerm");
            return (Criteria) this;
        }

        public Criteria andGradeTermNotIn(List<String> values) {
            addCriterion("grade_term not in", values, "gradeTerm");
            return (Criteria) this;
        }

        public Criteria andGradeTermBetween(String value1, String value2) {
            addCriterion("grade_term between", value1, value2, "gradeTerm");
            return (Criteria) this;
        }

        public Criteria andGradeTermNotBetween(String value1, String value2) {
            addCriterion("grade_term not between", value1, value2, "gradeTerm");
            return (Criteria) this;
        }

        public Criteria andLikeWeekIsNull() {
            addCriterion("like_week is null");
            return (Criteria) this;
        }

        public Criteria andLikeWeekIsNotNull() {
            addCriterion("like_week is not null");
            return (Criteria) this;
        }

        public Criteria andLikeWeekEqualTo(Integer value) {
            addCriterion("like_week =", value, "likeWeek");
            return (Criteria) this;
        }

        public Criteria andLikeWeekNotEqualTo(Integer value) {
            addCriterion("like_week <>", value, "likeWeek");
            return (Criteria) this;
        }

        public Criteria andLikeWeekGreaterThan(Integer value) {
            addCriterion("like_week >", value, "likeWeek");
            return (Criteria) this;
        }

        public Criteria andLikeWeekGreaterThanOrEqualTo(Integer value) {
            addCriterion("like_week >=", value, "likeWeek");
            return (Criteria) this;
        }

        public Criteria andLikeWeekLessThan(Integer value) {
            addCriterion("like_week <", value, "likeWeek");
            return (Criteria) this;
        }

        public Criteria andLikeWeekLessThanOrEqualTo(Integer value) {
            addCriterion("like_week <=", value, "likeWeek");
            return (Criteria) this;
        }

        public Criteria andLikeWeekIn(List<Integer> values) {
            addCriterion("like_week in", values, "likeWeek");
            return (Criteria) this;
        }

        public Criteria andLikeWeekNotIn(List<Integer> values) {
            addCriterion("like_week not in", values, "likeWeek");
            return (Criteria) this;
        }

        public Criteria andLikeWeekBetween(Integer value1, Integer value2) {
            addCriterion("like_week between", value1, value2, "likeWeek");
            return (Criteria) this;
        }

        public Criteria andLikeWeekNotBetween(Integer value1, Integer value2) {
            addCriterion("like_week not between", value1, value2, "likeWeek");
            return (Criteria) this;
        }

        public Criteria andNicknameIsNull() {
            addCriterion("nickname is null");
            return (Criteria) this;
        }

        public Criteria andNicknameIsNotNull() {
            addCriterion("nickname is not null");
            return (Criteria) this;
        }

        public Criteria andNicknameEqualTo(String value) {
            addCriterion("nickname =", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotEqualTo(String value) {
            addCriterion("nickname <>", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameGreaterThan(String value) {
            addCriterion("nickname >", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameGreaterThanOrEqualTo(String value) {
            addCriterion("nickname >=", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameLessThan(String value) {
            addCriterion("nickname <", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameLessThanOrEqualTo(String value) {
            addCriterion("nickname <=", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameLike(String value) {
            addCriterion("nickname like", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotLike(String value) {
            addCriterion("nickname not like", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameIn(List<String> values) {
            addCriterion("nickname in", values, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotIn(List<String> values) {
            addCriterion("nickname not in", values, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameBetween(String value1, String value2) {
            addCriterion("nickname between", value1, value2, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotBetween(String value1, String value2) {
            addCriterion("nickname not between", value1, value2, "nickname");
            return (Criteria) this;
        }

        public Criteria andIconIsNull() {
            addCriterion("icon is null");
            return (Criteria) this;
        }

        public Criteria andIconIsNotNull() {
            addCriterion("icon is not null");
            return (Criteria) this;
        }

        public Criteria andIconEqualTo(String value) {
            addCriterion("icon =", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconNotEqualTo(String value) {
            addCriterion("icon <>", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconGreaterThan(String value) {
            addCriterion("icon >", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconGreaterThanOrEqualTo(String value) {
            addCriterion("icon >=", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconLessThan(String value) {
            addCriterion("icon <", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconLessThanOrEqualTo(String value) {
            addCriterion("icon <=", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconLike(String value) {
            addCriterion("icon like", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconNotLike(String value) {
            addCriterion("icon not like", value, "icon");
            return (Criteria) this;
        }

        public Criteria andIconIn(List<String> values) {
            addCriterion("icon in", values, "icon");
            return (Criteria) this;
        }

        public Criteria andIconNotIn(List<String> values) {
            addCriterion("icon not in", values, "icon");
            return (Criteria) this;
        }

        public Criteria andIconBetween(String value1, String value2) {
            addCriterion("icon between", value1, value2, "icon");
            return (Criteria) this;
        }

        public Criteria andIconNotBetween(String value1, String value2) {
            addCriterion("icon not between", value1, value2, "icon");
            return (Criteria) this;
        }

        public Criteria andFinishedWeekIsNull() {
            addCriterion("finished_week is null");
            return (Criteria) this;
        }

        public Criteria andFinishedWeekIsNotNull() {
            addCriterion("finished_week is not null");
            return (Criteria) this;
        }

        public Criteria andFinishedWeekEqualTo(Integer value) {
            addCriterion("finished_week =", value, "finishedWeek");
            return (Criteria) this;
        }

        public Criteria andFinishedWeekNotEqualTo(Integer value) {
            addCriterion("finished_week <>", value, "finishedWeek");
            return (Criteria) this;
        }

        public Criteria andFinishedWeekGreaterThan(Integer value) {
            addCriterion("finished_week >", value, "finishedWeek");
            return (Criteria) this;
        }

        public Criteria andFinishedWeekGreaterThanOrEqualTo(Integer value) {
            addCriterion("finished_week >=", value, "finishedWeek");
            return (Criteria) this;
        }

        public Criteria andFinishedWeekLessThan(Integer value) {
            addCriterion("finished_week <", value, "finishedWeek");
            return (Criteria) this;
        }

        public Criteria andFinishedWeekLessThanOrEqualTo(Integer value) {
            addCriterion("finished_week <=", value, "finishedWeek");
            return (Criteria) this;
        }

        public Criteria andFinishedWeekIn(List<Integer> values) {
            addCriterion("finished_week in", values, "finishedWeek");
            return (Criteria) this;
        }

        public Criteria andFinishedWeekNotIn(List<Integer> values) {
            addCriterion("finished_week not in", values, "finishedWeek");
            return (Criteria) this;
        }

        public Criteria andFinishedWeekBetween(Integer value1, Integer value2) {
            addCriterion("finished_week between", value1, value2, "finishedWeek");
            return (Criteria) this;
        }

        public Criteria andFinishedWeekNotBetween(Integer value1, Integer value2) {
            addCriterion("finished_week not between", value1, value2, "finishedWeek");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}